home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-2.iso / Files II / Hyper / G / Getting Started.sit / Getting Started1bbs.rsrc / TEXT_131.txt < prev    next >
Encoding:
Text File  |  1993-05-20  |  5.9 KB  |  77 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Learning By Examing & Borrowing/Creating from Bits & Pieces.
  8.  
  9. Once you are ready to begin constructing your own stacks, or even while experimenting with your practice stack, you will want to borrow a button, sound, field, script, background or some other element from a stack.  Doing so can involve four processes or tools: cutting and pasting, moving resources, examining cards and exporting scripts from stacks so they can be examined with a word processor.  All four are relatively easy to use because they involve processes common to the Mac user interface.
  10.  
  11.  
  12. Cutting & Pasting
  13.  
  14. You can copy buttons, graphics, backgrounds, fields, texts, etc., from one stack to another simply by
  15.  
  16.     
  17.   1.  selecting it
  18.     2.  copying it
  19.     3.  going to the other stack
  20.     4.  pasting it.
  21.  
  22.  
  23. The only thing that really varies in this process is the tool you select to begin.  If you want to copy a button, you select the "button tool" from the tool box, "select" the button you want to copy, press [command + c] to copy it, more to the stack you want to copy to, and press [command + v] to paste it.  You may need to move it to the position you want. 
  24.  
  25. To copy a graphic, select the lasso tool or "selection" tool (looks like a box), encircle the box or graphic you want to copy, press [command + c] to copy it, more to the stack you want to copy to, and press [command + v] to paste it.  You may need to move it to the position you want.
  26.  
  27. Copying a background is done the same way except that you have to be sure you are in the background layer and that you paste what you capture to the background layer of your new stack.   Press [command b] to go to the background layer and [command b] to leave it.
  28.  
  29. Even cards can be copied in much the same way except you have to select "copy card" from the edit pull-down menu.  Once that is done, you can go to your knew stack and press [command v] to "paste" the card.  It will be pasted after the card you are on and will be pasted with its background, script and all other contents intact. 
  30.  
  31. Of course if you want to copy a stack's background for your entire stack, the easiest way to do that is to go to the stack you want to copy, and select "copy stack" from the "file" pull-down menu.  You'll be presented with a dialog box and can choose to copy the background of the original by checking the appropriate box. 
  32.  
  33.  
  34.  
  35. Copying (Moving) Resources
  36.  
  37. Some stack elements can't be moved with cutting and pasting.  The reasons involve too much to explain here, but they include sounds,  icons used with buttons, fonts for some other purposes, external commands (xcmds and xcfns).  For example, if you have a sound you want to play with a button on your stack that is not commonly available on your Mac, you need to attach it to the stack using the Resource Mover found in the Power Tools Stack which came with HyperCard 2.0.  These resources can be moved with ResCopy, ResEdit other programs.
  38.  
  39. While no xcmds have been included on this disk independently, the various stacks have some which can be copied to your stacks.  Look at the scripts of the stacks from which you get xcmds to see how they are accessed or "commanded".  (Check StackTools Disk 5 for a large number of xcmds complete with demonstrations and instructions.) 
  40.  
  41.  
  42. Examining Stacks
  43.  
  44. You can always examine stacks by going to the stacks and going to the script of various elements to see how something is done.  Some key combinations that will help you (in addition to the combinations display beside the commands in the menus....the navigation commands in the "Go" menu are especially helpful) do that are
  45.  
  46. *****option-command   (makes all buttons on a card visible)
  47.                   double click on one while it is visible to see it's script.
  48.  
  49. *****Double click on a button or field while that tool is selected to go                          
  50.                   directly to that script.
  51.  
  52. *****option-command c    (shows card script)
  53.  
  54. *****option-command b    (shows background script)
  55.  
  56. *****option-command s    (shows stack script)
  57.  
  58. *****command-spacebar  (shows the menu bar)
  59.  
  60. *****command-tab  (chooses browser tool)
  61.  
  62. *****command-tab-tab (chooses button tool)
  63.  
  64. *****command-tab-tab-tab (chooses field tool)
  65.  
  66. *****command ~ (tilde)  (takes you to the last card you saw)
  67.  
  68.  
  69. However, sometimes stacks are locked to prevent such examination and its not always easy to find the command that caused an effect, and sometimes you need to see all the scripts to understand what a stack does or how it works.  Two tools included in HyperCard 2.0's Power Tools can help in these situations.
  70.  
  71. The first is the "List Objects" tool.  HyperCard has to be told to include it in the command path by clicking on the "Use This Stack" button on the Power Tools menu, then following the prompts.  Follow instructions on the "List Objects" card.  It will display a list of all the buttons and fields on the card you are examining and its background.  You can examine and/or edit the scripts of listed buttons and fields.
  72.  
  73. The second tool is the "Export a Stack's Scripts" tool.  Various versions of this are around, but the one included in Power Tools works great.  This tool exports all of a stack's scripts into a single text file.  You can examine the file with a word processor or print it to examine at your leisure.  When examining the scripts with a word processor, you can copy portions into your scrapbook and then copy them into the appropriate place in your new stack to save typing.  Scripts are a text file in some senses.
  74.  
  75. These are just a few of the possibilities, but enough to get you started.  There's no substitute for examining stacks, tinkering, modifying, borrowing, etc., for learning how to use HyperCard.
  76.  
  77. A final note about borrowing and copying.  I'm constantly looking for art for various projects.  You can copy the art from any non copyrighted stack for your own use.  Start an art collection stack and copy art from various cards to that stack to make finding it easier later.  I do the same thing for sounds, icons, scripts, etc.